﻿@model Quester.Models.TestVModel

@{
    ViewBag.Title = "TestEdit";
}

<h2>@Model.Subject - @Model.TestName</h2>
@using(Html.BeginForm())
{    
<h2>@Html.ValidationMessageFor(m => m.TestName)</h2>
<h2>@Html.ValidationMessageFor(m => m.Subject)</h2>
    @Html.ValidationSummary(true)
    @Html.HiddenFor(m => m.TestID)
    @Html.HiddenFor(m => m.CreationDate)
    @Html.HiddenFor(m => m.CreatorID)
    @Html.HiddenFor(m => m.EditorID)
    @Html.HiddenFor(m => m.LastModDate)
    @Html.HiddenFor(m => m.CreatorName)
    @Html.HiddenFor(m => m.EditorName)

<table class="editForm">
    <tbody>
        <tr>
            <th>Предмет
            </th>
            <td>@Html.EditorFor(m => m.Subject)
            </td>
        </tr>
        <tr>
            <th>Назва тесту
            </th>
            <td>@Html.EditorFor(m => m.TestName)
            </td>
        </tr>
        <tr>
            <th><input type="submit" value="Зберегти" class="ActButton"/>
            </th>
            <td class="ActButton">@Html.ActionLink("Відміна", "TestList")
            </td>
        </tr>
    </tbody>
</table>
}